#define _CRT_SECURE_NO_WARNINGS 520
#include<stdio.h>

int bit_of_different(int a, int b)
{
	int count = 0;

	for (int i = 0; i < 32; i++)
	{
		if (((a >> i) & 1) != ((b >> i) & 1))
		{
			count++;
		}
	}
	return count;
}


int main()
{
	int a = 0, b = 0;
	scanf("%d %d", &a, &b);
	int count = bit_of_different(a, b);
	printf("%d", count);
	return 0;
}